import Login from '@/views/Login.vue'
const routes = [
  {
    path: '/login',
    name: 'Login',
    component: Login,
    meta: {
      title: '登录'
    }
  },
  {
    path: '/query',
    name: 'query',
    component: () => import('@/views/query.vue')
  },
  {
    path:'/WeChat',
    name:'WeChat',
    component:()=>import('@/views/WeChat.vue'),
    meta:{
      title:'微信步数'
    }
  },
  {
    path: '/Agreement',
    name: 'Agreement',
    component: () => import('@/views/Agreement.vue'),
    meta: {
      title: '错误我的'
    }
  },
  {
    path: '/Mock',
    name: 'mock',
    component: () => import('@/views/mock.vue')
  },
  {
    path: '*',
    name: '404',
    component: () => import('@/views/404.vue'),
    meta: {
      title: '404'
    }
  },
  {
    path: '',
    name: 'home',
    redirect: '/shouye',
    component: () => import('@/views/home.vue'),
    meta: {
      title: '首页'
    },
    children: [
      {
        path: 'my',
        name: 'name',
        component: () => import('@/components/my.vue'),
        meta: {
          title: '我的'
        }
      },
      {
        path: 'car',
        name: 'car',
        component: () => import('@/components/Car.vue'),
        meta: {
          title: '车辆'
        }
      },
      {
        path: 'shouye',
        name: 'shouye',
        component: () => import('@/components/shouye.vue'),
        meta: {
          title: '首页'
        }
      }
    ]
  }
]
export default routes
